package com.aaa.controller;

import com.aaa.entity.User;
import com.aaa.util.AccountName;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsPackage: com.aaa.controller.api
 * @Description:
 * @CreateTime: 2023-03-31  11:55
 * @Author: ql
 */
@RestController
@RequestMapping
public class GetUserController {

    @Autowired
    private AccountName accountName;
    @GetMapping("/getUser")
    public User getUser(){
        return accountName.getUser();
    }
}
